// EquipServiceImpl.java
package com.geek.hero.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.geek.hero.entity.Equip;
import com.geek.hero.mapper.EquipMapper;
import com.geek.hero.service.IEquipService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 装备服务实现类
 * </p>
 *
 * @author author
 * @since 2025-09-14
 */
@Service
public class EquipServiceImpl extends ServiceImpl<EquipMapper, Equip> implements IEquipService {

    @Override
    public List<Equip> searchByName(String keyword) {
        QueryWrapper<Equip> queryWrapper = new QueryWrapper<>();
        queryWrapper.like("name", keyword);
        return this.list(queryWrapper);
    }
}
